using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using ESoft.Core.Data;
using ESoft.Core.Data.Entity;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace ESoft.Portal.Data.Domain.Entity
{
    /// <summary>
    /// CContentArticle
    /// </summary>    
	[Table("c_content_article")]
    public partial class CContentArticleEntity : BaseModel
    {
		/// <summary>
        /// 文章标识
        /// </summary>
		[Key] 
		[Column("ARTICLE_ID")]
        public string ArticleId { get; set; }
		/// <summary>
        /// 机构标识
        /// </summary> 
		[Column("ORG_ID")]
        public string OrgId { get; set; }
		/// <summary>
        /// 标题
        /// </summary> 
		[Column("TITLE")]
        public string Title { get; set; }
		/// <summary>
        /// 内容标识
        /// </summary> 
		[Column("RICH_TEXT_ID")]
        public string RichTextId { get; set; }
		/// <summary>
        /// 频道标识
        /// </summary> 
		[Column("CHANNEL_ID")]
        public string ChannelId { get; set; }
		/// <summary>
        /// 推荐1是2否
        /// </summary> 
		[Column("IS_HOT")]
        public int IsHot { get; set; }
		/// <summary>
        /// 大图
        /// </summary> 
		[Column("IMAGE_ID")]
        public string ImageId { get; set; }
		/// <summary>
        /// 外链
        /// </summary> 
		[Column("URL")]
        public string Url { get; set; }
		/// <summary>
        /// 排序
        /// </summary> 
		[Column("SORT")]
        public int Sort { get; set; }
		/// <summary>
        /// 创建时间
        /// </summary> 
		[Column("CREATE_DATETIME")]
        public DateTime? CreateDatetime { get; set; }
    }

		public class CContentArticleConfiguration : EntityMappingConfiguration<CContentArticleEntity>
    {
        public override void Map(EntityTypeBuilder<CContentArticleEntity> b)
        {
        }
    }
}

